Calling code after boot completes

Occasionally it is necessary to call some fix-up Lua code once all the boot process completes.

For example, the OEM Lua script is called first and may need to hook things up based on User-script settings or configuration settings.

postboot.add(function)

The function is called after boot completes.

No parameters are expected.

Note

Uses postboot.list to hold a table list of functions.

Note

postboot.run is called by the ip.buffer when bootup completes – to iterate through the list of registered functions in the postboot.list table.

e.g.

function AfterBoot()
 -- hook things up and modify - everything is just about to run
end

postboot.add(AfterBoot)--more code


In the example, the function AfterBoot will be run once everything else has executed - just before the ip.buffer runs "proper".